export default (win)=>
  if not win
    return
  if win.isDestroyed()
    return
  win.close()
  try
    win.destroy()
  catch err
    0
  return
